# cmake 最低版本需求
cmake_minimum_required(VERSION 3.10)

# 工程名称
project(test_rocksdb)

# 设置
set(CMAKE_CXX_STANDARD 17)
# set (CMAKE_CXX_COMPILER "/usr/bin/x86_64-linux-gnu-g++-8")
set (CMAKE_CXX_COMPILER "/usr/bin/clang++-10")

# 编译源码生成目标
add_executable(load-wikipedia src/load-wikipedia.cpp)
target_link_libraries(load-wikipedia stdc++fs rocksdb)

add_executable(load-enron src/load-enron.cpp)
target_link_libraries(load-enron stdc++fs rocksdb)

add_executable(load-stack-overflow src/load-stack-overflow.cpp)
target_link_libraries(load-stack-overflow stdc++fs rocksdb)

add_executable(load-stack-overflow-comment src/load-stack-overflow-comment.cpp)
target_link_libraries(load-stack-overflow-comment rocksdb)

add_executable(see-status src/see-status.cpp)
target_link_libraries(see-status stdc++fs rocksdb)

add_executable(test-filesystem src/test-filesystem.cpp)
target_link_libraries(test-filesystem stdc++fs)